<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:p="http://primefaces.prime.com.tr/ui">>
    <h:head></h:head>
       
             <center>
    <p:panel header="Login" style="width: 350px;">
        
        <h:form id="formlogin" >
            <h:panelGrid columns="2" cellpadding="2">
                <h:outputLabel for="#{loginBean.userName}" value="UserName"/>
                <h:inputText value="#{loginBean.userName}" label="UserName"></h:inputText>
                <h:outputLabel for="#{loginBean.password}" value="Password"/>
                <h:inputSecret value="#{loginBean.password}"></h:inputSecret>
                <h:commandButton type="submit" value="Login" action="#{loginBean.login()}"></h:commandButton>
            </h:panelGrid>
        </h:form>
    </p:panel>
    <div><h:messages ></h:messages></div>
    </center>
           
            
   
</html>

